package com.hourses.mapper;

import com.hourses.page.Page;
import com.hourses.pojo.OutStore;
import com.hourses.pojo.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OutStoreMapper {
    //添加出库单
    public Integer addOutStore(OutStore outStore);

    //查询出满足查询条件的总行数
    public Integer selectToTallNumOfOutStores(OutStore outStore);

    //查询每一页需要展示的数据
    public List<OutStore> selectPageList(@Param("outStore") OutStore outStore, @Param("page") Page page);

    //修改out_store表中的is_out字段为1
    public Integer updateIsOut(OutStore outStore);

    //出库操作修改商品库存
    public Integer updateProductInvent(OutStore outStore);
}